package com.fastjrun.eladmin.itrms.mapstruct;

import com.fastjrun.eladmin.itrms.dto.DeploymentDTO;
import com.fastjrun.eladmin.itrms.entity.RmsDeployment;
import com.fastjrun.eladmin.itrms.vo.DeploymentVO;
import org.mapstruct.DecoratedWith;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
@DecoratedWith(RmsDeploymentMapperDecorator.class)
public interface RmsDeploymentMapper {
    RmsDeploymentMapper INSTANCE = Mappers.getMapper(RmsDeploymentMapper.class);

    DeploymentVO toVO(RmsDeployment entity);

    List<DeploymentVO> toVO(List<RmsDeployment> entityList);

    RmsDeployment toEntity(DeploymentDTO dto);

}
